package com.nn.rest;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

@Path("/")
public class Service {
	
	
	@GET
	@Produces("application/json")
	public Input sampleDouble(){
		
		Double[] array = {1.0,2.0,3.0};
		Input temp = new Input();
		temp.setArray(array);
		return temp;
	}

	@POST
	@Consumes("application/json")
	public String getAction(Input input){
		
		return "A string";
	}
}
